#!/bin/bash

rm -rf /etc/sysconfig/network-scripts/ifcfg-bond0 
rm -rf /etc/modprobe.conf 
\cp -f /usr/local/broker/conf.sh /opt/apm/analyze/dist/script/
dos2unix /opt/apm/analyze/dist/script/conf.sh
\cp -f /usr/local/broker/analyzer.xml /opt/apm/analyze/dist/conf/
\cp -f /opt/apm/analyze/dist/script/apm_broker /etc/init.d/apm_broker
chmod +x /etc/init.d/apm_broker
service apm_broker start 


chmod +x /opt/apm/server/indicator/bin/start
/opt/apm/server/indicator/bin/start -d


chmod +x /usr/local/tcpreplay/tcpreplay1.sh
dos2unix /usr/local/tcpreplay/tcpreplay1.sh
chmod +x /usr/local/tcpreplay/tcpreplay2.sh
dos2unix /usr/local/tcpreplay/tcpreplay2.sh
ifconfig eth0 promisc
ifconfig eth0 mtu 59000
nohup sh /usr/local/tcpreplay/tcpreplay1.sh >/dev/null &
nohup sh /usr/local/tcpreplay/tcpreplay2.sh >/dev/null 

